<?php
include_only();

require_once "include/config.php";
require_once "include/functions.php";

if(empty($page)){$page="home";}

if(!empty($action) and $action=="signout") {
sign_out();
header( 'Location: index.php' ) ;
}

if (!empty($login) and $login=="yes") {
sign_in($user,$password);
header( 'Location: index.php' ) ;
}

if (!empty($register) and $register=="yes") {
register($user,$password,$email);
header( 'Location: index.php' ) ;
}

if(!empty($action) and $action=='add_email')
{
add_to_maillist($email);
}


require_once "jwplayer.php";


?>